package com.spic.business.plan.drill.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spic.business.plan.drill.mapper.PlanDrillStartMapper;
import com.spic.business.plan.drill.domain.PlanDrillStart;
import com.spic.business.plan.drill.service.IPlanDrillStartService;

/**
 * 预案演练开始，结束启动Service业务层处理
 * 
 * @author renxiang
 * @date 2021-10-31
 */
@Service
public class PlanDrillStartServiceImpl implements IPlanDrillStartService 
{
    @Autowired
    private PlanDrillStartMapper planDrillStartMapper;

    /**
     * 查询预案演练开始，结束启动
     * 
     * @param id 预案演练开始，结束启动主键
     * @return 预案演练开始，结束启动
     */
    @Override
    public PlanDrillStart selectPlanDrillStartById(Long id)
    {
        return planDrillStartMapper.selectPlanDrillStartById(id);
    }

    /**
     * 查询预案演练开始，结束启动列表
     * 
     * @param planDrillStart 预案演练开始，结束启动
     * @return 预案演练开始，结束启动
     */
    @Override
    public List<PlanDrillStart> selectPlanDrillStartList(PlanDrillStart planDrillStart)
    {
        return planDrillStartMapper.selectPlanDrillStartList(planDrillStart);
    }

    /**
     * 新增预案演练开始，结束启动
     * 
     * @param planDrillStart 预案演练开始，结束启动
     * @return 结果
     */
    @Override
    public int insertPlanDrillStart(PlanDrillStart planDrillStart)
    {
        return planDrillStartMapper.insertPlanDrillStart(planDrillStart);
    }

    /**
     * 修改预案演练开始，结束启动
     * 
     * @param planDrillStart 预案演练开始，结束启动
     * @return 结果
     */
    @Override
    public int updatePlanDrillStart(PlanDrillStart planDrillStart)
    {
        return planDrillStartMapper.updatePlanDrillStart(planDrillStart);
    }

    /**
     * 批量删除预案演练开始，结束启动
     * 
     * @param ids 需要删除的预案演练开始，结束启动主键
     * @return 结果
     */
    @Override
    public int deletePlanDrillStartByIds(Long[] ids)
    {
        return planDrillStartMapper.deletePlanDrillStartByIds(ids);
    }

    /**
     * 删除预案演练开始，结束启动信息
     * 
     * @param id 预案演练开始，结束启动主键
     * @return 结果
     */
    @Override
    public int deletePlanDrillStartById(Long id)
    {
        return planDrillStartMapper.deletePlanDrillStartById(id);
    }
}
